package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 招生学生数据（未成交的）
 * </p>
 *
 * @author hpiggy
 * @since 2023-08-29
 */
@TableName("enroll_student")
@ApiModel(value = "EnrollStudent对象", description = "招生学生数据（未成交的）")
@Data
public class EnrollStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String studentName;

    @ApiModelProperty("科目")
    private Integer subjectsId;

    private Long customerId;

    private Integer yearPart;

    private Integer quarterNum;

    private Long teacherId;

    private Integer deleted;

    @ApiModelProperty("添加日期")
    private LocalDate addDate;


    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private List<EnrollData> enrollDataList;
}
